#打印大写字母写的名字
showImage=['','','','','','']
showImage0=''
showImage1=''
showImage2=''
showImage3=''
showImage4=''
showImage5=''

#绘制水平字母A
def Draw_Horizotal_A(spaceNumber=1):
    rowNum=6
    space=' '
    if(spaceNumber<=0): 
        print("每个字母A间的空格必须大于0，请检查后重试！！！")
        return
    for i in range(rowNum):
        curSpaceNum=rowNum-i
        if i==0:
            # global showImage0
            # showImage0+=space*curSpaceNum+'A'+2*4*space+spaceNumber*'\t'
            showImage[0]+=space*curSpaceNum+'A'+2*4*space+spaceNumber*'\t'
            continue
        if i==1:
            # global showImage1
            # showImage1+=space*curSpaceNum+'A'+i*space+'A'+spaceNumber*'\t'
            showImage[1]+=space*curSpaceNum+'A'+i*space+'A'+spaceNumber*'\t'
            continue
        if i==3:
            # global showImage3
            # showImage3+=space*curSpaceNum+(2*i+1)*'A'+spaceNumber*'\t'
            showImage[3]+=space*curSpaceNum+(2*i+1)*'A'+spaceNumber*'\t'
            continue
        if i==2:
            # global showImage2
            # showImage2+=space*curSpaceNum+'A'+space*(2*i-1)+'A'+spaceNumber*'\t'
            showImage[2]+=space*curSpaceNum+'A'+space*(2*i-1)+'A'+spaceNumber*'\t'
        if i==4:
            # global showImage4
            # showImage4+=space*curSpaceNum+'A'+space*(2*i-1)+'A'+spaceNumber*'\t'
            showImage[4]+=space*curSpaceNum+'A'+space*(2*i-1)+'A'+spaceNumber*'\t'
        if i==5:
            # global showImage5
            # showImage5+=space*curSpaceNum+'A'+space*(2*i-1)+'A'+spaceNumber*'\t'
            showImage[5]+=space*curSpaceNum+'A'+space*(2*i-1)+'A'+spaceNumber*'\t'

# #测试使用
# def printName(showImage0,showImage1,showImage2,showImage3,showImage4,showImage5):
#     print(showImage0)
#     print(showImage1)
#     print(showImage2)
#     print(showImage3)
#     print(showImage4)
#     print(showImage5)

# printName(showImage0,showImage1,showImage2,showImage3,showImage4,showImage5)


#打印名字(私有方法)
def __printName(array=[]):
    length=len(array)
    if length>0:
        for i in array:
            print(i)
    print()

#打印所有大大写字母（公有方法）
def printAllUpperName():
    __printName(showImage)
    

# #使用示例
# #1-调用水平A的绘制
# Draw_Horizotal_A()
# Draw_Horizotal_A()
# Draw_Horizotal_A()
# Draw_Horizotal_A()
# Draw_Horizotal_A()

# #2-打印水平A
# __printName(showImage)


#绘制垂直字母A
def Draw_Vertical_A(spaceNumber=1):
    rowNum=6
    space=' '
    if spaceNumber<=0:
        print("每个字母A间的空格必须大于0，请检查后重试！！！")
        return
    for i in range(rowNum):
        curSpaceNum=rowNum-i
        if i==0:
            print(spaceNumber*'\t',space*curSpaceNum,'A')
            continue
        if i==1:
            print(spaceNumber*'\t',space*curSpaceNum,'A','A')
            continue
        if i==3:
            print(spaceNumber*'\t',space*curSpaceNum,(2*i+1)*'A')
            continue
        print(spaceNumber*'\t',space*curSpaceNum,'A',space*(2*i-3),'A')

# #使用示例
# Draw_Vertical_A()
# Draw_Vertical_A(2)
# Draw_Vertical_A(4)


def PrintYourName():
    print("  CCCC  ",'      A      ',' RRRRR   ',' TTTTTTT ',' EEEEEE ',' RRRRR  ')
    print(" C    C ",'     A A     ',' R    R  ','    T    ',' E      ',' R    R ')
    print("C       ",'    A   A    ',' R    R  ','    T    ',' EEEE   ',' R    R ')
    print("C       ",'   AAAAAAA   ',' RRRRR   ','    T    ',' E      ',' RRRRR  ')
    print(" C    C ",'  A       A  ',' R    R  ','    T    ',' E      ',' R    R ')
    print("  CCCC  ",' A         A ',' R      R','    T    ',' EEEEEE ',' R     R')
    print()